package com.uduemc.biso.core.feign.fallback;

import org.springframework.stereotype.Component;

import com.uduemc.biso.core.extities.center.SysServer;
import com.uduemc.biso.core.feign.SysServerFeign;
import com.uduemc.biso.core.utils.RestResult;

import feign.hystrix.FallbackFactory;

@Component
public class SysServerFeignFallback implements FallbackFactory<SysServerFeign> {

	@Override
	public SysServerFeign create(Throwable cause) {
		return new SysServerFeign() {

			@Override
			public RestResult findOne(Long id) {
				return null;
			}

			@Override
			public RestResult findOkOne(Long id) {
				return null;
			}

			@Override
			public RestResult findAll() {
				return null;
			}

			@Override
			public RestResult findOkAll() {
				return null;
			}

			@Override
			public RestResult insert(SysServer server) {
				return null;
			}

			@Override
			public RestResult updateById(SysServer server) {
				return null;
			}

			@Override
			public RestResult deleteById(long id) {
				return null;
			}

			@Override
			public RestResult findByTypeStatus(int type, short status) {
				return null;
			}

		};
	}

}
